import socket

host = 'localhost'
port = '18001'

s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind((host,port))

while 1:
    dataUDP, addrUDP = s.recvfrom(1024)
    print(dataUDP)

